﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AvaloniaDevice.Common.WIFI
{
    /// <summary>
    /// 表示WiFi网络的信息
    /// </summary>
    public class WifiInfo
    {
        /// <summary>
        /// 网络名称
        /// </summary>
        public string Ssid { get; set; }

        /// <summary>
        /// 路由器MAC地址
        /// </summary>
        public string Bssid { get; set; }

        /// <summary>
        /// 信号强度(0-100)
        /// </summary>
        public int SignalStrength { get; set; }

        /// <summary>
        /// 是否加密
        /// </summary>
        public bool IsEncrypted { get; set; }

        /// <summary>
        /// 加密类型
        /// </summary>
        public string EncryptionType { get; set; }

        /// <summary>
        /// 是否已连接
        /// </summary>
        public bool IsConnected { get; set; }

        /// <summary>
        /// 频率(MHz)
        /// </summary>
        public int Frequency { get; set; }

        public override string ToString()
        {
            return $"{Ssid} ({SignalStrength}%) - {EncryptionType}";
        }
    }

  
}
